package impl

import (
	"game/src/common"
)

var _ common.IRequest = &Request{}

type Request struct {
	conn common.IConnection
	msg  common.IMessage
}

// GetConnection 获取请求连接信息
func (r *Request) GetConnection() common.IConnection {
	return r.conn
}

// GetData 获取请求消息的数据
func (r *Request) GetData() []byte {
	return r.msg.GetData()
}

// GetMsgID 获取请求的消息的ID
func (r *Request) GetMsgID() uint32 {
	return r.msg.GetMsgId()
}
